<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/pub/includ.jsp"%>
<%
	response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1 
	response.setHeader("Pragma", "no-cache"); //HTTP 1.0 
	response.setDateHeader("Expires", 0);
%>
<html>
	<head>
		<title>模块配置主页</title>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK">
		<script type="text/javascript"
			src="<%=path %>/resources/js/shouye.js"></script>
		<style type="text/css">
		<!--
		body {	margin: 0px; font-size:12px; color:#666;}
		.left{ float:left;}
		ul,li{ margin:0; padding:0;}
		li{ list-style:none;}
		.TextBox{ width:100%; height:391px; margin:0 auto; background:#f7fcfe;}
		.TextTitleBox{ width:120px; height:391px; background:#01b4ef; float:left;}
		.TextTitleBox ul{ margin-top:30px; width:180px;}
		.TextTitleBox li{ height:25px; width:180px; background:url(<%=path %>/resources/skins/default/images/texttitle_bg.gif) no-repeat; padding-bottom:1px; text-align:center; }
		.TextTitleBox a{ color:#fff; line-height:25px;text-decoration:none;}
		.TextTitleBox a:hover{ }
		.TextInput{  height:368px; border:1px solid #d6f5ff; margin:10px; float:left; background:#fff;}
		-->
		</style>
	</head>
	<body style="margin: 0;">
		<div class="TextBox">
			<div class="TextTitleBox">
		    	<ul>
		        	<li><a href="#" onclick="changePIframe('article');">文章设置</a></li>
		            <li><a href="#" onclick="changePIframe('menu');">菜单设置</a></li>
		            <li><a href="#" onclick="changePIframe('product');">产品设置</a></li>
		            <li><a href="#" onclick="changePIframe('content');">文本设置</a></li>
		            <li><a href="#" onclick="changePIframe('pictrue');">图片设置</a></li>
		        </ul>
		    </div>
			<div class="TextInput">
				<iframe id="portlet_ifrmMain" name="portlet_ifrmMain" width="100%"
						align="right" scrolling="no" height="100%" frameborder="0"
						src="<%=request.getContextPath()%>/cms/portlet/toForm/0?portletype=article&horderChannelId=${param.horderChannelId}&placeholderId=${param.placeholderId}"></iframe>    
			</div>
		</div>
		<script>	
		function changePIframe(flag){
			var basePortletUrl = "<%=request.getContextPath()%>/cms/portlet/toForm/0?portletype="+flag+"&horderChannelId=${param.horderChannelId}&placeholderId=${param.placeholderId}";
			document.getElementById("portlet_ifrmMain").src =basePortletUrl;
		}
		
</script>
	</body>
</html>